package vin.pth.authorization.service;

import vin.pth.authorization.exception.AuthorizationException;
import vin.pth.base.pojo.UserDetails;

/**
 * 授权用户service.
 *
 * @author cocoon
 */
public interface AuthorizationUserService {

  /**
   * 生成Token.
   *
   * @param userDetails 用户信息
   * @return 生成的Token
   * @throws AuthorizationException 授权异常
   */
  String generateToken(UserDetails userDetails) throws AuthorizationException;

}
